import request from '@/utils/request'
import base from '@/api/base'

export default {
    page(params) {
        return request({
            method: 'get',
            url: base.WU + '/fence/page',
            params
        })
    },
    list() {
        return request({
            method: 'get',
            url: base.WU + '/fence/list'
        })
    },
    add(data) {
        return request({
            method: 'post',
            url: base.WU + '/fence',
            data
        })
    },
    update(data) {
        return request({
            method: 'put',
            url: base.WU + '/fence',
            data
        })
    },
    delete(data) {
        return request({
            method: 'delete',
            url: base.WU + '/fence',
            data
        })
    }

}
